package com.itheima.pinda.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pinda.DTO.truck.TruckTypeDto;
import com.itheima.pinda.common.utils.PageResponse;
import com.itheima.pinda.entity.truck.PdTruckType;

import java.math.BigDecimal;
import java.util.List;

public interface PdTruckTypeService extends IService<PdTruckType> {


    TruckTypeDto saveTruckType(TruckTypeDto dto);

    TruckTypeDto findById(String id);

    PageResponse<TruckTypeDto> findByPage(Integer page,
                                          Integer pageSize,
                                          String name,
                                          BigDecimal allowableLoad,
                                          BigDecimal allowableVolume);

    List<TruckTypeDto> findAll(List<String> ids);

    TruckTypeDto updateTruckType(String id, TruckTypeDto dto);
}
